<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="vendor/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="themes/css/style.css">
    <title>Hello World</title>
    <script type="text/javascript" src="vendor/layui/layui.js"></script>
    <script type="text/javascript" src='themes/js/wke.js'></script>
</head>

<body>
    <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    <header class="header">
        <div class="logo">Spider</div>
        <div class="operate">
        </div>
    </header>
    <section class='main'>
    </section>
    <footer class='footer'>
        <span>Copyright @ Amber</span>
    </footer>
</body>
<script type="text/javascript" src="themes/js/main.js"></script>
<script type="text/javascript">
function log() {
    console.log.apply(console || window.console, arguments)
}
var ext = window.external
log(typeof(ext), 'typeof(ext)')


function on_btn_click(evt) {
    console.log(evt)
    var o = js_native_func('fn_abc');
    console.log(o);
    // window.ext.call_py('this is a test for call back-end code in javascript')
}

function my_func() {
    // var arr =['zhangsan',15,1,75,"男",'teacher']
    var val = Wke.callback('js_msgbox', 'zhangsan', 15, 1.75, "男", 'teacher');
    console.log(val)
    var dat = {
        abc: 'abc'
    }
    var rs = Wke.callback('wke_log', dat)
    console.log(rs)
}

js_func_demo();
my_func()
Wke.execute('callback_fn',{code:'code-xxxxxxxxx'})
</script>

</html>